namespace command
{
    public class Help : Cmd
    {
        public Help()
        {
            this.Command = "--help";
            this.NeedArg = false;
            this.IsWorkAreaCmd = false;
            this.Discript = "get the help.";
            this.Format = "--help";
            this.Function = Func;
        }

        private void Func(string[] args)
        {
            System.Console.WriteLine("MINS is a file sync tool that you can synchronize your files automatically.");
            System.Console.WriteLine("Version: 1.0.1");
            System.Console.WriteLine("[Options]:");
            foreach (Cmd cmd in CmdLine.RegisteredCmds.Values)
            {
                System.Console.Write("\t" + cmd.Command + " :\t");
                System.Console.WriteLine(cmd.Discript);
            }
        }
    }
}